package com.chaofan.kings_poster.model;

/**
 * Created by Chaofan at 2018-12-14 14:26
 * email:chaofan2685@qq.com
 * 排行榜实体类
 **/
public class RankingList implements Comparable<RankingList> {

    public String cover;

    public Integer count;


    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public String getCover() {
        return cover;
    }

    public void setCover(String cover) {
        this.cover = cover;
    }

    public RankingList() {
    }

    public RankingList(String cover, Integer count) {
        this.cover = cover;
        this.count = count;
    }

    /**
     * 实现排序标准
     * @param o
     * @return
     */
    @Override
    public int compareTo(RankingList o) {
        return o.getCount().compareTo(this.count);
    }
}
